package com.example.translation.entity;

public class TranslationResponse {
    private String originalText;
    private String translatedText;
    private String fromLanguage;
    private String toLanguage;
    private boolean success;
    private String errorMessage;
    
    // 构造函数、getter和setter
    public TranslationResponse() {}
    
    public TranslationResponse(String originalText, String translatedText, 
                              String fromLanguage, String toLanguage, boolean success) {
        this.originalText = originalText;
        this.translatedText = translatedText;
        this.fromLanguage = fromLanguage;
        this.toLanguage = toLanguage;
        this.success = success;
    }
    
    // Getters and Setters
    public String getOriginalText() {
        return originalText;
    }
    
    public void setOriginalText(String originalText) {
        this.originalText = originalText;
    }
    
    public String getTranslatedText() {
        return translatedText;
    }
    
    public void setTranslatedText(String translatedText) {
        this.translatedText = translatedText;
    }
    
    public String getFromLanguage() {
        return fromLanguage;
    }
    
    public void setFromLanguage(String fromLanguage) {
        this.fromLanguage = fromLanguage;
    }
    
    public String getToLanguage() {
        return toLanguage;
    }
    
    public void setToLanguage(String toLanguage) {
        this.toLanguage = toLanguage;
    }
    
    public boolean isSuccess() {
        return success;
    }
    
    public void setSuccess(boolean success) {
        this.success = success;
    }
    
    public String getErrorMessage() {
        return errorMessage;
    }
    
    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
}
